package com.aaa.javaweb.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class XuFang {
    private Integer ruzhuid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;

    public XuFang(Integer ruzhuid, Date begin, Date endtime) {
        this.ruzhuid = ruzhuid;
        this.begin = begin;
        this.endtime = endtime;
    }

    public XuFang() {
    }

    public Integer getRuzhuid() {
        return ruzhuid;
    }

    public void setRuzhuid(Integer ruzhuid) {
        this.ruzhuid = ruzhuid;
    }

    public Date getBegin() {
        return begin;
    }

    public void setBegin(Date begin) {
        this.begin = begin;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    @Override
    public String toString() {
        return "XuFang{" +
                "ruzhuid=" + ruzhuid +
                ", begin=" + begin +
                ", endtime=" + endtime +
                '}';
    }
}
